﻿<ad:DockableContent x:Class="BOL.Apps.GeneNetworkBrowser.Controls.FindPane"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock"
        Title="Find Genes/Relations"
        Background="#FFBCC7D8"
        Width="300"
        Height="210"
        FloatingWindowSizeToContent="WidthAndHeight">
    <TabControl Name="_tcFind" BorderThickness="1" TabStripPlacement="Top" SelectionChanged="TabControl_SelectionChanged">
        <TabItem Header="Gene">
            <StackPanel Margin="5">
                <TextBlock Text="Find gene:" />
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="180"></ColumnDefinition>
                        <ColumnDefinition></ColumnDefinition>
                    </Grid.ColumnDefinitions>

                    <TextBox Name="_tbFindGene"  Grid.Column="0" Margin="0,0,5,0" KeyDown="TextBoxFindGeneKeyEnter" />
                    <ComboBox Grid.Column="1">
                        <ComboBoxItem IsSelected="True">Gene Symbol</ComboBoxItem>
                        <ComboBoxItem>Gene Name</ComboBoxItem>
                        <ComboBoxItem>ENTREZ id</ComboBoxItem>
                    </ComboBox>
                </Grid>

                <TextBlock Text="Look in:" Margin="0,5,0,0" />
                <ComboBox Name="_cbLookInGene">
                    <ComboBoxItem IsSelected="True">Current Metwork</ComboBoxItem>
                    <ComboBoxItem>All Open Networks</ComboBoxItem>
                </ComboBox>

                <Expander Header="Find options" Margin="0,5,0,0" Padding="0" IsExpanded="True">
                    <StackPanel>
                        <CheckBox Name="_cbMatchCaseGene">Match case</CheckBox>
                        <CheckBox Name="_cbMatchWholeWordGene">Match whole word</CheckBox>
                    </StackPanel>
                </Expander>

                <DockPanel HorizontalAlignment="Right">
                    <Button Name="_btnFindNextGene" Width="80" Margin="0,5,0,0" Click="ButtonFindGeneClick">Find Next</Button>
                </DockPanel>
            </StackPanel>
        </TabItem>

        <TabItem Header="Relation">
            <StackPanel Margin="5">
                <TextBlock Text="Find relation:" />
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="180"></ColumnDefinition>
                        <ColumnDefinition></ColumnDefinition>
                    </Grid.ColumnDefinitions>

                    <TextBox Name="_tbFindRelation"  Grid.Column="0" Margin="0,0,5,0" KeyDown="TextBoxFindRelationKeyEnter" />
                    <ComboBox Grid.Column="1">
                        <ComboBoxItem IsSelected="True">Gene Symbol</ComboBoxItem>
                        <ComboBoxItem>Gene Name</ComboBoxItem>
                        <ComboBoxItem>ENTREZ id</ComboBoxItem>
                    </ComboBox>
                </Grid>

                <TextBlock Text="Look in:" Margin="0,5,0,0" />
                <ComboBox Name="_cbLookInRelation">
                    <ComboBoxItem IsSelected="True">Current Metwork</ComboBoxItem>
                    <ComboBoxItem>All Open Networks</ComboBoxItem>
                </ComboBox>

                <Expander Header="Find options" Margin="0,5,0,0" Padding="0" IsExpanded="True">
                    <StackPanel>
                        <CheckBox Name="_cbMatchCaseRelation">Match case</CheckBox>
                        <CheckBox Name="_cbMatchWholeWordRelation">Match whole word</CheckBox>
                    </StackPanel>
                </Expander>

                <WrapPanel HorizontalAlignment="Right">
                    <Button Name="_btnFindNextRelation" Width="80" Margin="0,5,0,0" Click="ButtonFindRelationClick">Find Next</Button>
                </WrapPanel>
            </StackPanel>
        </TabItem>
    </TabControl>
</ad:DockableContent>